﻿<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>

<link href="css/style.css" type="text/css" rel="stylesheet">
<link href="css/myStyle.css" type="text/css" rel="stylesheet">
<link href="css/facebook div styles.css" rel="stylesheet" type="text/css" />
<link href="css/list.css" rel="stylesheet" type="text/css" />
<link href="css/mystyle.css" rel="stylesheet" type="text/css" />

<link href="css/facebox.css" media="screen" rel="stylesheet" type="text/css" />
<link href="css/faceplant.css" media="screen" rel="stylesheet" type="text/css" />

<script src="js/jquery.js" type="text/javascript"></script>
<script src="js/gameLoad.js" type="text/javascript"></script>
<script src="js/facebox.js" type="text/javascript"></script>
<script type="text/javascript" language="javascript" src="js/behavior.js"></script>
<script type="text/javascript" language="javascript" src="js/rating.js"></script>
<link rel="stylesheet" type="text/css" href="css/rating.css" />
<script type="text/javascript" src="js/jquery.watermarkinput.js"></script>
<script type="text/javascript">
$(document).ready(function(){
						   
$(".search").keyup(
function() 
{
	var searchbox = $(this).val();
	var dataString = 'searchword='+ searchbox;

	if(searchbox=='')
	{
	}
	else
	{
		$.ajax({
		type: "POST",
		url: "search.php",
		data: dataString,
		cache: false,
		success: function(html)
		{
			$("#display").html(html).show();
		}
	});
}return false;    
});
});
jQuery(function($){
   $("#searchbox").Watermark("Search");
   $("#searchbox").blur(function(){
        $("#display").css("display","none");
      });
   });
</script>

<style type="text/css">


#display
{
	position:absolute;
	width:190px;
	display:none;
	float:right;
	right:10px;
	border-color:#333333 #333333 #293E6A;
	border-style:solid;
	border-width:1px 1px 1px;
	overflow:hidden;
}
.display_box
{	
	width:190px;
	background:none repeat scroll 0 0 #FFFFFF;
	overflow:hidden;
	padding:2px 0;
	border-top:solid 1px #dedede; 
	font-size:12px; 
	height:50px;
	color:#3B5998;
}

.display_box:hover
{
background:#6D84B4;
color:#FFFFFF;
}
#shade
{
	background-color:#00CCFF;
}
</style>


<?php
require('_config-rating.php'); // get the db connection info
$pic=$_GET["user_pic"];
$userid=$_GET["userid"];

$gameid= $_GET["gameid"];
$gm= $_GET["game"];

mysql_query("SET NAMES 'utf8'");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
}


$sql = "SELECT * FROM games WHERE gameId =$gameid ";
$rs_result = mysql_query($sql,$con); 
if($rs_result){
	if ($row = mysql_fetch_array($rs_result)) { 
		$gameName=$row["gameName"];
		$gameDesc=$row["gameDesc"];
		$picUrl=$row["picUrl"];
		$url=$row["gameUrl"];
		$gameName=$row["gameName"];
		$path=$row["picUrl"];
		$gId=$row["gameId"];
	}
}
mysql_close($con);

?>
</head>
<body>
<div id="header">
	<?php include("header.php");?>
</div>

<div id="contentArea">
	<div id="mySideBar" style="float:left;width:270px;position:relative">
    	<div class="sidebarContainer" id="sidebarSubscribe">
        	<a target="_blank" href="http://feeds.feedburner.com/Tutorialzine" class="subscribeSidebarBox" id="subscribeRSS">
                <span class="title">Beceri Oyunları</span>
            </a>
            <a target="_blank" href="http://feeds.feedburner.com/Tutorialzine" class="subscribeSidebarBox" id="subscribeRSS">
                <span class="title">Beceri Oyunları</span>
            </a>
            <a target="_blank" href="http://feeds.feedburner.com/Tutorialzine" class="subscribeSidebarBox" id="subscribeRSS">
                <span class="title">Beceri Oyunları</span>
            </a>
            <a target="_blank" href="http://feeds.feedburner.com/Tutorialzine" class="subscribeSidebarBox" id="subscribeRSS">
                <span class="title">Beceri Oyunları</span>
            </a>
            <a target="_blank" href="http://feeds.feedburner.com/Tutorialzine" class="subscribeSidebarBox" id="subscribeRSS">
                <span class="title">Beceri Oyunları</span>
            </a>
            <a target="_blank" href="http://feeds.feedburner.com/Tutorialzine" class="subscribeSidebarBox" id="subscribeRSS">
                <span class="title">Beceri Oyunları</span>
            </a>
            <a target="_blank" href="http://feeds.feedburner.com/Tutorialzine" class="subscribeSidebarBox" id="subscribeRSS">
                <span class="title">Beceri Oyunları</span>
            </a>
            <a target="_blank" href="http://feeds.feedburner.com/Tutorialzine" class="subscribeSidebarBox" id="subscribeRSS">
                <span class="title">Beceri Oyunları</span>
            </a>
            <a target="_blank" href="http://feeds.feedburner.com/Tutorialzine" class="subscribeSidebarBox" id="subscribeRSS">
                <span class="title">Beceri Oyunları</span>
            </a>
            <a target="_blank" href="http://feeds.feedburner.com/Tutorialzine" class="subscribeSidebarBox" id="subscribeRSS">
                <span class="title">Beceri Oyunları</span>
            </a>
            <a target="_blank" href="http://feeds.feedburner.com/Tutorialzine" class="subscribeSidebarBox" id="subscribeRSS">
                <span class="title">Beceri Oyunları</span>
            </a>
            <a target="_blank" href="http://feeds.feedburner.com/Tutorialzine" class="subscribeSidebarBox" id="subscribeRSS">
                <span class="title">Beceri Oyunları</span>
            </a>
        </div>
    </div>
	<div style="width:830px;float:left">
	<?php include("playContent.php");?>
	</div>
</div>
<div id="footer"><?php include("footer.php");?></div>
</body>
</html>